package org.chnxi.study.design.bridge;

/**
 * 桥接模式
 */
public class BridgeTest {

    public static void main(String[] args) {
        System.out.println("需要一台苹果笔记本>>>>>");
        Laptop apple = new Laptop(new AppleBrand());
        apple.info();

        System.out.println("需要一台联想台式机>>>>>");
        Desktop lenovo = new Desktop(new LenovoBrand());
        lenovo.info();
    }

}
